﻿using FinancialBook.Core.Models;
using SQLite;

namespace FinancialBook.Models
{
    public class Transaction : ITCEntity
    {
        [PrimaryKey, AutoIncrement]
        public int Id { get; set; }
        public string Type { get; set; }
        public int Amount { get; set; }
        public string Category { get; set; }
        public string Desc { get; set; }
        public string Date { get; set; }

        static int sid = 0;
        public Transaction()
        {
        }
        public Transaction(string type, int amount, string category, string desc, string date)
        {
            //this.Id = sid;
            sid++;
            Type = type;
            Amount = amount;
            Category = category;
            Desc = desc;
            Date = date;
        }
    }
}
